package com.inst.interceptor;

import java.util.Map;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

public class InstInterceptor extends AbstractInterceptor {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		
		System.out.println("bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb="+invocation.getInvocationContext().getName());
		return invocation.invoke();
		/*Map session = invocation.getInvocationContext().getSession();

		if (null != session.get("ssid")) {
			return invocation.invoke();
		} else {
			return "noid";
		}*/
	}
}
